'use strict'
import { View } from '../../component/index'
import style from './css.css'

class Item extends React.Component {
  static propTypes = {
    item: PropTypes.object,
    className: PropTypes.string
  }

  static defaultProps = {
    className: ''
  }

  render () {
    return (
      <View className={`${style.verticalScrollViewItem} ${this.props.className}`}>
        {this.props.item.label || this.props.item.title}
      </View>
    )
  }
}

export default Item

